package com.poetry.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.poetry.domain.dto.QuizDTO;
import com.poetry.domain.dto.TranslationDTO;
import com.poetry.domain.po.Quiz;
import com.poetry.exception.R;

public interface IQuizService extends IService<Quiz> {
    R<QuizDTO> generateQuiz(Integer poemId, Integer difficulty);

    R<QuizDTO> checkAnswer(Integer quizId, String answer);

    R<QuizDTO> generateTranslation(Integer poemId);

    R<TranslationDTO> evaluateTranslation(Integer quizId, String translation);
}
